const { app, BrowserWindow } = require('electron')


app.whenReady().then(() => {
  const mainWindow = new BrowserWindow({
    width: 600,
    height: 400
  })

  mainWindow.loadFile('./index.html')

  mainWindow.on('close', () => {
    console.log(111)
  })

})

app.on('window-all-closed', () => {
  console.log('退出应用')
  app.quit()
})

